package com.tencreat.domain.mall;

import com.baomidou.mybatisplus.annotation.*;
import com.tencreat.common.annotation.Excel;
import com.tencreat.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;


/**
 * 帮砍记录对象 mall_goods_help_cut_user
 *
 * @author wangkai
 * @date 2021-11-04
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@TableName("mall_goods_help_cut_user")
public class MallGoodsHelpCutUser extends BaseEntity<MallGoodsHelpCutUser> {
    private static final long serialVersionUID = 1L;


    /**
     * 商城砍价参与用户
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "帮砍ID")
    private Integer id;


    /**
     * 砍价编号
     */
    @Excel(name = "砍价编号")
    @ApiModelProperty(value = "砍价编号")
    @TableField("`cut_sn`")
    private String cutSn;

    @ApiModelProperty("订单号")
    private String orderSn;

    /**
     * 用户uid
     */
    @Excel(name = "用户uid")
    @ApiModelProperty(value = "用户uid")
    @TableField("`uuid`")
    private Long uuid;


    /**
     * 商品id
     */
    @Excel(name = "商品id")
    @ApiModelProperty(value = "商品id")
    @TableField("`goods_id`")
    private Long goodsId;


    /**
     * 货品id
     */
    @Excel(name = "货品id")
    @ApiModelProperty("货品id")
    @TableField("`product_id`")
    private Long productId;

    /**
     * 用户昵称
     */
    @Excel(name = "用户昵称")
    @ApiModelProperty(value = "用户昵称")
    @TableField("`user_nick_name`")
    private String userNickName;


    /**
     * 用户头像
     */
    @Excel(name = "用户头像")
    @ApiModelProperty(value = "用户头像")
    @TableField("`user_head_img`")
    private String userHeadImg;


    /**
     * 本次砍价金额
     */
    @Excel(name = "本次砍价金额")
    @ApiModelProperty(value = "本次砍价金额")
    @TableField("`cut_money`")
    private BigDecimal cutMoney;

    @ApiModelProperty("数据是否处理")
    private Integer status;


    /**
     * 拓展记录
     */
    @Excel(name = "拓展记录")
    @ApiModelProperty(value = "拓展记录")
    @TableField(exist = false)
    private String record;

    @ApiModelProperty("参与砍价的人")
    @TableField("union_id")
    private String unionId;


    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic
    @TableField("`del_flag`")
    private String delFlag;


    /**
     * 租户ID
     */
    @Excel(name = "租户ID")
    @ApiModelProperty(value = "租户ID")
    @TableField("`tenant_id`")
    private Long tenantId;


}
